<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/4/24
  Time: 13:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html>
<head>
    <title>编辑职业病台账</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var danweiName="";
        <c:if test="${fn:length(ac.userDepartmentList) >0}">
        <c:forEach var="lis" items="${ac.userDepartmentList}">
        danweiName += ',' + '${lis.deptName}';
        danweiName=danweiName.substring(1);
        </c:forEach>
        </c:if>
        var isDiagnosisDIv="${ac.isDiagnosis}"
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/account/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="formEditAccount" method="POST">

    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one" >
                    <label class="lable-style">姓名:</label>
                    <input id="userIdName" name="userIdName" class="easyui-textbox" value="${ac.userPhy==null?"":ac.userPhy}" editable="false" required="true" validType="validSelect" style="width: 240px;">
                    <span>*</span>
                    <input type="hidden" id="userId" name="userId" value="${ac.userId==null?"":ac.userId}">
                    <input type="hidden" id="acId" name="id" value="${ac.id}"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">工号:</label>
                    <input class="easyui-textbox" type="text" id="gonghao" value="${ac.userCode==null?"":ac.userCode}" data-options="readonly:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">出生日期:</label>
                    <input class="easyui-textbox" type="text" id="chusheng" value="${ac.birthday==null?"":ac.birthday}" data-options="readonly:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">单位名称:</label>
                    <input id="danwei" type="text" class="easyui-textbox" data-options="readonly:true"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">岗位:</label>
                    <input id="gangwei" type="text" class="easyui-textbox" value="${ac.postName==null?"":ac.postName}" data-options="readonly:true"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">性别:</label>
                    <input id="xingbie" type="text" class="easyui-textbox"  <c:if test="${ac.gender!=null}">  value="${ac.gender=='1'?"男":'女'}" </c:if> data-options="readonly:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" >
                    <label class="lable-style">职业病名称:</label><%--editable="false"--%>
                    <input id="diseasesNameIdName" name="diseasesNameIdName" class="easyui-textbox" editable="false"  value="${ac.diseasesName==null?"":ac.diseasesName}"  required="true" validType="validSelect" style="width: 240px;">
                    <span>*</span>
                    <input type="hidden" id="diseasesNameId" name="diseasesNameId" value="${ac.diseasesNameId==null?"":ac.diseasesNameId}">
                </div>
                <div class="form_one">
                    <label class="lable-style">职业病类别:</label>
                    <input id="leibie" type="text" class="easyui-textbox" value="${ac.diseasesTypeName==null?"":ac.diseasesTypeName}"  data-options="readonly:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">严重程度:</label>
                    <input name="severity" type="text"  class="easyui-textbox" value="${ac.severity==null?"":ac.severity}" style="width: 240px;" >
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">诊断单位:</label><%--data-options="required:true"--%>
                    <input class="easyui-textbox" type="text" id="serviceIdName" name="serviceIdName"  value="${ac.serviceName==null?"":ac.serviceName}" editable="false"   style="width:240px;">
                    <input type="hidden" id="serviceId" name="serviceId" value="${ac.serviceId==null?"":ac.serviceId}">
                </div>
                <div class="form_one">
                    <label class="lable-style">开始接触危害因素时间:</label>
                    <input class="easyui-datebox" style="width: 240px;" data-options="editable:false" value="${ac.startDate==null?"":ac.startDate}" name="startDate">
                </div>
                <div class="form_one">
                    <label class="lable-style">工龄:</label>
                    <input class="easyui-textbox" style="width: 240px;" value="${ac.workYears==null?"":ac.workYears}" name="workYears">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否有诊断证明:</label><%--data-options="required:true"--%>
                    <input type="text" id="isDiagnosis" name="isDiagnosis" data-options="required:true" value="${ac.isDiagnosis==null?"":ac.isDiagnosis}"  style="width:240px;">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">状态:</label>
                    <input style="width: 240px;" data-options="required:true" value="${ac.stateZd==null?"":ac.stateZd}"   id="stateZd" name="stateZd">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">转归分类:</label>
                    <input  style="width: 240px;" data-options="required:true"  value="${ac.zgType==null?"":ac.zgType}"   id="zgType" name="zgType">
                    <span>*</span>
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否初次鉴定:</label><%--data-options="required:true"--%>
                    <input type="text" id="isAppraisal" value="${ac.isAppraisal==null?"":ac.isAppraisal}"  name="isAppraisal" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">诊断日期:</label>
                    <input class="easyui-datebox" style="width: 240px;" data-options="required:true,editable:false" value="${ac.diagnosisDate==null?"":ac.diagnosisDate}"  name="diagnosisDate">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 60px">
                    <label class="lable-style">转归情况:</label>
                    <input name="zgSituation" type="text" class="easyui-textbox" data-options="multiline:true,required:true"
                           style="width: 600px;height: 55px" value="${ac.zgSituation==null?"":ac.zgSituation}" />
                    <span>*</span>
                </div>
            </div>
        </div>
    </div>
    <div class="information" id="zdFile" style="display: block">
        <div class="information-title">
            <p>诊断证明文件</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <accessory:accessorySimple permission="write" packageKey="accountpage" uploadUserId="${loginUser.id}"  packageInfos="${accessoryList}"
                                   accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information">
        <div class="information-title">
            <p>登记人信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div style="clear: both;height: 80px">
                <div class="form_one">
                    <label class="lable-style">登记人:</label>
                    <input class="easyui-textbox" type="text" value="${ac.userName}"  data-options="readonly:true" style="width: 240px">

                </div>
                <div class="form_one">
                    <label class="lable-style">登记部门:</label>
                    <input class="easyui-textbox" type="text" value="${ac.deptName}"  data-options="readonly:true" style="width: 240px">
                </div>
                <div class="form_one">
                    <label class="lable-style">登记时间:</label>
                    <input class="easyui-textbox" type="text" value="${ac.addTime}"  data-options="readonly:true" style="width: 240px">
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>


